<extend name="Base:base" />

<block name='style'>
<style type="text/css">
.authops ul{list-style:none; margin:10px 0; padding:0; display:block;}
.authops li{float:left; font-size:13px; padding:7px 20px; border:#999 1px solid; margin:0 10px; border-radius:1px; cursor:pointer; background-color:#DDD;}
.authops li:hover{background-color:#EEE;}

.usergroup{ font-size:14px;}
.usergroup ul{list-style:none; margin-left:10px; padding:0;}
.usergroup li{padding:5px 10px; margin:5px 0;}

.groupset{width:500px; height:auto; border-collapse:collapse; border:#CCC 1px solid; margin:20px 30px;}
.groupset td{padding:10px 20px; font-size:14px;}
.groupset th{padding:10px 20px; font-size:14px;}
.groupset th{text-align:left;}

</style>
</block>

<block name="maincont">
<div class="mdtitle">用户授权</div>
<!--
<div class="usergroup">
	<form action="changeGroup" method="post">
    	<input type="hidden" name="userid" value="{$userid}">
	<ul>
    	<foreach name="userGroups" item="group">
        	<if condition="($group.own eq 1)"><li><input type="checkbox"  name="ug[]" value="{$group.id}" checked>{$group.title}</li>
            <else /><li><input type="checkbox" name="ug[]" value="{$group.id}">{$group.title}</li></if>
        </foreach>
    </ul>
    <input type="submit" value="确定" class="buttonA"><input type="button" onClick="backUrl()" value="返回" class="buttonA">
    </form>
</div>
-->
<table class="groupset">
	<form action="userGroup" method="post"><input type="hidden" name="userid" value="{$userid}">
    <foreach name="userGroups" item="group">
        	<if condition="($group.own eq 1)"><tr><td><input  type="checkbox"  name="ug[]" value="{$group.id}" class="checkbox" checked>{$group.title}</td></tr>
            <else /><tr><td><input type="checkbox" name="ug[]" class="checkbox" value="{$group.id}">{$group.title}</td></tr></if>
   	</foreach>
    <tr><td><input type="submit" value="确定" class="buttonA"><input type="button" value="返回" onClick="backUrl()" class="buttonA"></td></tr>
    </form>
</table>
</block>

<block name="script">
<script language="javascript">
function backUrl(){
	window.open("../Admin/index","_self");
}
</script>
</block>